package com.ciko.code.adapter;

import android.content.Context;
import com.ciko.code.base.adapter.CommonAdapter;
import com.ciko.code.base.adapter.ViewHolder;
import com.ciko.code.bean.SelPolicyListEty;
import com.mywork.R;

import java.util.List;

/**
 * Created by ciko on 2015/12/6.
 */
public class WorkManagerBaodangListAdapter extends CommonAdapter<SelPolicyListEty> {

    public WorkManagerBaodangListAdapter(Context context, List<SelPolicyListEty> mDatas, int itemLayoutId) {
        super(context, mDatas, itemLayoutId);
    }

    @Override
    public void convert(ViewHolder helper, SelPolicyListEty item) {

        helper.setText(R.id.tv_nameBaodan, item.getHolderName());
        helper.setText(R.id.tv_typeBaodan, "车险");
        helper.setText(R.id.tv_timeBaodan, item.getPolicyEndTime());
        helper.setText(R.id.tv_carNumBaodan, item.getPlateNumber());
        helper.setText(R.id.tv_moneyBaodan, item.getPremium());

    }
}
